package com.itheima.domain.company;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class Company implements Serializable {

    private String id;
    private String name;
    //类型转换器:
    //1 编码方式  只需要操作一次  相对麻烦
    //2 注解形式  所有的实体类中,只要涉及到类型转换的,都要添加, 相对简单
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date expirationDate;
    private String address;
    private String licenseId;
    private String representative;
    private String phone;
    private String companySize;
    private String industry;
    private String remarks;
    private Integer state;
    private Double balance;
    private String city;
}
